import os
from lib.API import *

Install_File('/sdc')

while True:
    WLAN = WLAN_Connect(config("SSID"),config("Pass"))
    if WLAN != False:
        break
while True:
    try:
        T = Tree_Connect(config("IP"), int(config("Port")), config("User"), config("Key"))
        if T != False:
            break
    except:
        pass

if Base_Connect(T, config("Base"), config("Code")) == True:
    pass
